package com.yh.supergo.manager.feign;

import com.yh.supergo.pojo.Itemcat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @InterfaceName ItemCatFeignClient
 * @Description TODO
 * @Author 0715-YuHao
 * @Date 2020/11/16 22:35
 * @Version 1.0
 */
@FeignClient("supergo-manager")
public interface ItemCatFeignClient {

    @GetMapping("/cat/category")
    List<Itemcat> getItemCatList();

    @GetMapping("/cat/category/{categoryId}")
    Itemcat getItemCatById(@PathVariable("categoryId") long categoryId);
}
